$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 2vw;
  overflow: hidden;
  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 50vh;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .main {
    position: relative;
    .lines {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      transform: translateY(-50%);

      img {
        width: 100%;
      }
    }
    .section1 {
      width: 70vw;
      margin: 7vw auto 5vw auto;

      .t {
        color: #000;
        font-size: $fontSize_32;
        font-weight: bold;
      }

      .time {
        color: #333;
        font-size: $fontSize_16;
        font-weight: bold;
        margin: 1vw 0 2.5vw 0;
      }

      .html {
        color: #000;
        font-size: $fontSize_16;
        line-height: 1.8;
        font-weight: bold;
        img{
          max-width: 100%;
        }
      }

      .share {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin: 2vw 0;

        a {
          display: inline-block;
          position: relative;
          transition: all 600ms;

          svg {
            display: block;
          }

          .m_icon {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
          }

          &:hover {
            transform: translate(5px, 5px);
          }
        }
      }

      .btns {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #707070;
        padding-top: 2vw;

        .prev {
          display: flex;
          align-items: center;
          color: #000;
          transition: all 600ms;

          p {
            font-size: $fontSize_18;
            font-weight: bold;
            margin-left: 10px;
          }

          &:hover {
            color: #FF8080;
          }
        }

        .all {
          color: #000;
          font-size: $fontSize_18;
          font-weight: bold;
          transition: all 600ms;

          &:hover {
            color: #FF8080;
          }
        }

        .next {
          display: flex;
          align-items: center;
          color: #000;
          transition: all 600ms;

          p {
            font-size: $fontSize_18;
            font-weight: bold;
            margin-right: 10px;
          }

          &:hover {
            color: #FF8080;
          }
        }
      }
    }
    .section2{
      margin: 4vw 8vw;
      .t{
        color: #000;
        font-size: $fontSize_48;
        font-weight: bold;
      }
      .allNews{
        margin: 2vw 0;
        .swiper-container{
          width: 100%;
          a{
            display: block;
            width: 100%;
            .pic{
              overflow: hidden;
              img{
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
            .text{
              margin: 1.5vw 0;
              .d1{
                display: flex;
                justify-content: space-between;
                align-items: center;
                .tag {
                  border-radius: 3px;
                  border: 1px solid #000;
                  font-size: 12px;
                  width: fit-content;
                  padding: 5px 10px;
                  color: #000;
                  transition: all 600ms;
                }
                .time{
                  color: #000;
                  font-size: 12/$f+vw;
                }
              }
              .d2{
                color: #000;
                line-height: 1.6;
                font-size: $fontSize_16;
                margin: 1vw 0;
                transition: all 600ms;
                height: 3vw;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
              }
              .btn{
                display: flex;
                justify-content: flex-end;
                align-items: center;
                position: relative;
                padding-bottom: 15px;
                .more{
                   padding: 5px 8px 6px 22px;
                  background-color: #000;
                  border-radius: 3px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  transition: all 600ms;
                  svg{
                    display: block;
                  }
                }
                &::after{
                  content:'';
                  display: block;
                  position: absolute;
                  left: 0;
                  bottom:0;
                  width: 100%;
                  height: 2px;
                  background: rgba(0, 0, 0, 0.10);
                  transition: all 600ms;
                }
              }
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
              .text{
                .d1{
                  .tag{
                    background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                    color:white;
                    border-color: #fff;
                  }
                }
                .d2{
                  color: #FF8080;
                }
                .btn{
                  .more{
                    background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                    padding: 5px 8px 6px 8px;
                  }
                  &::after{
                    background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .main{
      .section1{
        width: 90%;
        margin: 30px auto 20px auto;
        .t{
          font-size: 18px;
        }
        .time{
          font-size: 16px;
          margin: 10px 0 20px 0;
        }
        .html{
          font-size: 16px;
        }
        .btns{
          padding-top: 20px;
          .prev{
            p{
              font-size: 16px;
              margin-left: 0;
            }
          }
          .all{
            font-size: 16px;
          }
          .next{
            p{
              font-size: 16px;
              margin-right: 0;
            }
          }
        }
      }
      .section2{
        margin: 30px 5%;
        .t{
          font-size: 24px;
        }
        .allNews{
          margin: 15px 0;
          .swiper-container{
            a{
              .text{
                margin: 15px 0;
                .d1{
                  .time{
                    font-size: 14px;
                  }
                }
                .d2{
                  font-size: 16px;
                  height: auto;
                  margin: 15px 0;
                }
              }
            }
          }
        }
      }
    }
  }
}